﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameController : MonoBehaviour {
    public static GameController con;
    private void Awake()
    {
        con = this;
    }
    
    [Header("金币数量")]
    public int coin;
    public GameObject Njiasword;
    public void AddCoin(int coin)
    {
        
        this.coin += coin;
        scenes2Ui.ui.SetCoin(this.coin);
    }

    public GameObject Men;
    public void CreatMen()
    {
        Men.SetActive(true);
    }
    // Use this for initialization
    void Start () {
        coin = KeepCoin.con.CoinAll;
    }
	// Update is called once per frame
	void Update () {
	}
}
